package org.jeecg.modules.api.common.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.modules.Constant;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
@ApiModel(value = "仅有id的DTO对象", description = "仅有id的DTO对象")
public class OnlyIdDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id",required = true)
    @NotBlank(message = Constant.TIPS_PK_NOT_BLANK)
    private String id;
}
